package Day10.extend01;

public class Demo01 {
    public static void main(String[] args) {
        Teacher t = new Teacher();
        t.teach();
        System.out.println("------");
        t.name = "老王";
        t.teach();
        t.eat();

        System.out.println("------");

        t.salary = 4000;
        System.out.println(t.salary);

    }
}
